import Vue from 'vue'
import Router from 'vue-router'
import Recursive from './views/递归.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/recursive',
      name: 'Recursive',
      component: Recursive // 递归
    }, {
      path: '/faltArray',
      name: 'FaltArray',
      component: () => import('./views/数组扁平化.vue')
    }, {
      path: '/sortArray',
      name: 'SortArray',
      component: () => import('./views/sort的原理.vue')
    }, {
      path: '/',
      name: 'FilterArray',
      component: () => import('./views/数组去重.vue')
    }
  ]
})
